import { AddFriendResponse } from '@entity/add_user';
import { SystemAddFriendMsg, SystemMsg } from '@entity/system_msg';
import { Component, Prop, Vue } from 'vue-property-decorator';
import SystemMsgModel from '@message/system/model/Index.vue';

@Component({
    components: {
        SystemMsgModel
    }
})
export class AddFriendResponseView extends Vue {

    /** 系统消息 */
    @Prop({
        default: () => new SystemMsg()
    })
    private msg: SystemMsg;

    /** 
     * 获取系统消息中的好友反馈信息
     */
    get systemMsg(): SystemAddFriendMsg<AddFriendResponse> {
        return this.msg.data;
    }

    /** 
     * 获取反馈
     */
    get response(): AddFriendResponse {
        return this.systemMsg.data;
    }

}